package com.lagou.edu.remote;

import com.lagou.edu.dto.PromotionSpaceDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * AdRemoteService
 *
 * @author zyt
 * @date 2021/2/20 19:59
 **/
@FeignClient(name = "edu-ad-boot", path = "/ad")
public interface AdRemoteService {

    @GetMapping("/space/getAllSpaces")
    List<PromotionSpaceDTO> getAllSpaces();
    
    @GetMapping("/space/getAdBySpace")
    List<PromotionSpaceDTO> getAdBySpace(@RequestParam("spaceKey") String[] spaceKey);
}
